﻿using System;
using Bingosoft.Web.Utils;

namespace Bingosoft.WebApp.Modules.SecurityConsole.Privilege
{
    public partial class OperationRuleEdit : System.Web.UI.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //初始化页面元素
            if (this.SmartFormView1.IsInsert())
            {
                this.SmartFormView1["OperationId"]  = Request["Operation"];
            }
        }

        protected void SaveOperationRule(object sender, EventArgs e)
        {
            SmartFormView1.SaveOrUpdate();
            ScriptHelper.CloseDialog(this, "true");
        }
    }
}